#include <sys/time.h>
#include <iostream>
#include <iomanip>
#include <string>
#include <stdio.h>

#include "Environment.h" 

void* benchMarkReadSeq(void*);
void* benchMarkReadRand(void*);
void* benchMarkWriteSeq(void*);
void* benchMarkWriteRand(void*);

class ComputationDisk{

 private :
  Environment * _env; 
  
  void threadReadSeq(Environment ** tabEnv);
  void threadReadRand(Environment ** tabEnv);
  void threadWriteRand(Environment ** tabEnv);
  void threadWriteSeq(Environment ** tabEnv);




 public : 
  ComputationDisk(); 
  ComputationDisk(Environment * env); 
  ~ComputationDisk(); 
 
  void runTests(); 
  // getter / setter 
  Environment * getEnvironment(); 
  void setEnvironment(Environment * env); 
  void testFileExists(const char*);
};
